Content Library Item Updatesession File AddSpec

Content Library Item Updatesession File AddSpec
Content Library Item Updatesession File AddSpec

The Content Library Item Updatesession File AddSpec schema describes the properties of the file to be uploaded.

JSON Example
{
    "name": "string",
    "source_type": "string",
    "source_endpoint": {
        "uri": "string",
        "ssl_certificate_thumbprint": "string",
        "ssl_certificate": "string"
    },
    "size": 0,
    "checksum_info": {
        "algorithm": "string",
        "checksum": "string"
    }
}
string
name
Required

The name of the file being uploaded.

string
source_type
Required

The source type (SourceType) from which the file content will be retrieved.

For more information see: Content Library Item Updatesession File SourceType.

source_endpoint
Optional

Location from which the Content Library Service will fetch the file, rather than requiring a client to upload the file.

This property is optional and it is only relevant when the value of source_type is Content Library Item Updatesession File SourceType.PULL.

integer As int64 As int64
size
Optional

The file size, in bytes.

If missing or null, the server will not verify it received the correct size.

checksum_info
Optional

The checksum of the file. If specified, the server will verify the checksum once the file is received. If there is a mismatch, the upload will fail. For ova files, this value should not be set.

If missing or null, the server will not verify the checksum.